AVRO-4258: [java] remove some allocations from decoder.getBytes() and Utf8 handling #3776
AVRO-4258: [java] remove some allocations from decoder.getBytes() and Utf8 handling #3776mkeskells wants to merge 8 commits into
Conversation
|
Hi @opwvhk |
|
I've taken the liberty to run spotless. |
|
Hi @opwvhk |
|
I have merged main |
Now colocated with `readBytes(ByteBuffer)` and `skipBytes()` implementations.
…58-getBytes # Conflicts: # lang/java/avro/src/main/java/org/apache/avro/io/BinaryDecoder.java # lang/java/avro/src/main/java/org/apache/avro/io/Decoder.java # lang/java/avro/src/main/java/org/apache/avro/io/ResolvingDecoder.java # lang/java/avro/src/main/java/org/apache/avro/util/Utf8.java
|
Hi @opwvhk |
|
Hi |
Contribution Checklist
What is the purpose of the change
To reduce some allocations found during profiling for other changes (#3746)
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
There is some trivial addition to the tests but only to ensure the methods are called
Note - I can't verify the change locally as Arvo doesn't build for me locally
Documentation